package com.mysite.seckill.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/system")
public class SystemController {

    protected final Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping(value = "/millisecond", method = RequestMethod.GET)
    @ResponseBody
    public Long index(HttpServletRequest request, HttpServletResponse response) {
        return System.currentTimeMillis();
    }
}
